# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-poe-component-client-dns
pkgver=1.054
pkgrel=8
pkgdesc="Perl/CPAN Module POE::Component::Client::DNS"
arch=(any)
url="https://search.cpan.org/dist/POE-Component-Client-DNS"
license=("GPL" "PerlArtistic")
makedepends=("perl-net-dns" "perl-poe")
depends=("perl-net-dns" "perl-poe")
source=("https://www.cpan.org/authors/id/R/RC/RCAPUTO/POE-Component-Client-DNS-$pkgver.tar.gz")
sha256sums=('b19a06920a69b74c2712bb5a48b719ce58965309d9beb3e2a35d8ff783625c31')

build() {
  cd "$srcdir"/POE-Component-Client-DNS-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/POE-Component-Client-DNS-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
